/**  
* @Title: TreeMenuVO.java
* @Package cn.net.mtons.model.entity.vo
* @Description: TODO
* @author ma jinjian  
* @date 2016年1月31日 上午12:52:04
* @version V1.0  
*/ 
package cn.net.mtons.model.entity.vo;

import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName: TreeMenuVO
 * @Description: TODO
 * @author ma jinjian
 * @date 2016年1月31日 上午12:52:04
 *
 */
public class TreeMenuVO extends MtonsVO{
	
    private String text;
    private boolean leaf = false;
    private boolean expanded = false;
    private String moduleSN;
    private String moduleName;
    private String moduleParams = "";
    private List<TreeMenuVO> children;
    private Long moduleId;
    private String treeValue;

 public TreeMenuVO() {
    	
    }
    
    public TreeMenuVO( String text ) {
    	this.text = text;
    }
    
    public TreeMenuVO( String text, String moduleSN, String moduleName, boolean leaf, boolean expanded ) {
    	this.text = text;
    	this.moduleSN = moduleSN;
    	this.moduleName = moduleName;
    	this.leaf = leaf;
    	this.expanded = expanded;
    }
    
    public TreeMenuVO( String text, String moduleSN, String moduleName, boolean leaf, boolean expanded, String moduleParams ) {
    	this.text = text;
    	this.moduleSN = moduleSN;
    	this.moduleName = moduleName;
    	this.leaf = leaf;
    	this.expanded = expanded;
    	this.moduleParams = moduleParams;
    }
    
    public void addTreeMenu( TreeMenuVO treeMenu ) {
    	if ( children == null ) children = new ArrayList<TreeMenuVO>();
    	this.children.add( treeMenu );
    }
	
    public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public boolean isLeaf() {
		return leaf;
	}
	public void setLeaf(boolean leaf) {
		this.leaf = leaf;
	}
	public boolean isExpanded() {
		return expanded;
	}
	public void setExpanded(boolean expanded) {
		this.expanded = expanded;
	}
	public List<TreeMenuVO> getChildren() {
		return children;
	}
	public void setChildren(List<TreeMenuVO> children) {
		this.children = children;
	}
	public String getModuleSN() {
		return moduleSN;
	}
	public void setModuleSN(String moduleSN) {
		this.moduleSN = moduleSN;
	}
	public String getModuleName() {
		return moduleName;
	}
	public void setModuleName(String moduleName) {
		this.moduleName = moduleName;
	}

	public String getModuleParams() {
		return moduleParams;
	}
	public void setModuleParams(String moduleParams) {
		this.moduleParams = moduleParams;
	}
	public Long getModuleId() {
		return moduleId;
	}

	public void setModuleId(Long moduleId) {
		this.moduleId = moduleId;
	}

	public String getTreeValue() {
		return treeValue;
	}

	public void setTreeValue(String treeValue) {
		this.treeValue = treeValue;
	}
}
